﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SHRIS.MIS.Entity.ScadaData
{
    [Table("tb_toolStorehouse")]
    public class ToolStorehouseEntity : BaseScadaEnetity
    {
        /// <summary>
        /// 记录主键
        /// </summary>
        [Key]
        [Column("HouseId")]
        public Guid Id { get; set; }

        /// <summary>
        /// 设备ID
        /// </summary>
        [Required]
        public Guid DeviceId { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        [Required]
        public string DeviceName { get; set; }

        /// <summary>
        /// 刀库号
        /// </summary>
        [Required]
        public string HouseIndex { get; set; }

        /// <summary>
        /// 刀库刀位数量
        /// </summary>
        [Required]
        public int ToolQuantity { get; set; }
    }
}
